﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_DSMauHoaDon : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTab2")]
        private C1DockingTab _C1DockingTab2;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("CboLoaiHoaDon")]
        private ComboBox _CboLoaiHoaDon;
        [AccessedThroughProperty("CboLoaiHoaDon2")]
        private ComboBox _CboLoaiHoaDon2;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdAddRow")]
        private Button _CmdAddRow;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdDelRow")]
        private Button _CmdDelRow;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("ToolStripSeparator4")]
        private ToolStripSeparator _ToolStripSeparator4;
        [AccessedThroughProperty("txtDienGiai")]
        private TextBox _txtDienGiai;
        [AccessedThroughProperty("txtMauHoaDon")]
        private TextBox _txtMauHoaDon;
        [AccessedThroughProperty("VS_KiHieu")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VS_KiHieu;
        [AccessedThroughProperty("VSList")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSList;
        private DataView cFrmData;
        private string cFrmKhoa;
        private string cFrmKhoaOld;
        private string cFrmTask;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnableControl;
        private clsMauHoaDon objMHD;
        private clsKiHieu objSKH;

        public Frm_DSMauHoaDon()
        {
            base.Load += new EventHandler(this.Frm_DSMauHoaDon_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmKhoaOld = "";
            this.cFrmKhoa = "";
            this.cFrmTask = "";
            this.mAllowEdit = true;
            this.mAllowDel = true;
            this.mAllowView = true;
            this.mAllowAdd = true;
            this.objMHD = new clsMauHoaDon();
            this.objSKH = new clsKiHieu();
            this.InitializeComponent();
        }

        private void CboLoaiHoaDon_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        public bool CheckIvalid()
        {
            if (this.txtMauHoaDon.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập t\x00ean mẫu h\x00f3a đơn!", ""));
                this.txtMauHoaDon.Focus();
                return false;
            }
            if ((this.cFrmTask == "I") & this.objMHD.TrungMa(this.txtMauHoaDon.Text.Trim()))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Mẫu h\x00f3a đơn n\x00e0y đ\x00e3 tồn tại, bạn phải nhập mẫu kh\x00e1c!", ""));
                this.txtMauHoaDon.Focus();
                return false;
            }
            if (((this.cFrmTask == "U") & (this.txtMauHoaDon.Text.Trim() != this.cFrmKhoaOld)) & this.objMHD.TrungMa(this.txtMauHoaDon.Text.Trim()))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Mẫu h\x00f3a đơn n\x00e0y đ\x00e3 tồn tại, bạn phải nhập mẫu kh\x00e1c!", ""));
                this.txtMauHoaDon.Focus();
                return false;
            }
            return true;
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
        }

        private void CmdAddRow_Click(object sender, EventArgs e)
        {
            if (!Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(this.VS_KiHieu[this.VS_KiHieu.Rows.Count - 1, 1].ToString(), "", modGeneral.TypeOfValue.Nothing), "", false))
            {
                this.VS_KiHieu.AddItem("");
                this.VS_KiHieu[this.VS_KiHieu.Rows.Count - 1, 1] = "";
                this.VS_KiHieu[this.VS_KiHieu.Rows.Count - 1, 3] = "";
                this.VS_KiHieu.Select(this.VS_KiHieu.Rows.Count - 1, 1);
                this.VS_KiHieu.Focus();
            }
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
        }

        private void CmdDelRow_Click(object sender, EventArgs e)
        {
            if ((this.VS_KiHieu.Rows.Count != 1) && (this.VS_KiHieu.Row > 0))
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VS_KiHieu[this.VS_KiHieu.Row, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.VS_KiHieu.RemoveItem(this.VS_KiHieu.Row);
                }
                else if (this.objSKH.WasUsed(this.cFrmKhoa, Conversions.ToString(this.VS_KiHieu[this.VS_KiHieu.Row, 1])))
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("K\x00fd hiệu của mẫu h\x00f3a đơn n\x00e0y đ\x00e3 được sử dụng, kh\x00f4ng thể x\x00f3a!", ""));
                }
                else if (LVYModule.ConfirmDelete(""))
                {
                    this.VS_KiHieu.RemoveItem(this.VS_KiHieu.Row);
                }
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            if (((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0)) && (this.cFrmKhoa.Trim() != ""))
            {
                this.EnableControl = true;
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdPrint_Click(object sender, EventArgs e)
        {
            if ((this.VS_KiHieu.Rows.Count != 1) && (this.VS_KiHieu.Row > 0))
            {
                string strMauHD = "";
                string strKiHieu = "";
                string tenRpt = "";
                strMauHD = this.VSList[this.VSList.Row, 0].ToString().Trim();
                tenRpt = this.VSList[this.VSList.Row, 2].ToString().Trim();
                strKiHieu = this.VS_KiHieu[this.VS_KiHieu.Row, 1].ToString().Trim();
                ReportModule.PrintHoaDon_Mau(tenRpt, strMauHD, strKiHieu);
            }
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            if (this.CheckIvalid())
            {
                int row = this.VSList.Row;
                clsKiHieu objSKH = this.objSKH;
                objSKH.DelDSKiHieu(this.objMHD.MauHoaDon);
                int num3 = this.VS_KiHieu.Rows.Count - 1;
                for (int i = 1; i <= num3; i++)
                {
                    if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VS_KiHieu[i, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
                    {
                        objSKH.MauHoaDon = this.objMHD.MauHoaDon.Trim();
                        objSKH.SoKiHieu = Conversions.ToString(this.VS_KiHieu[i, 1]);
                        objSKH.GiaTri = Conversions.ToDouble(this.VS_KiHieu[i, 2]);
                        objSKH.TuSo = Conversions.ToDouble(this.VS_KiHieu[i, 4]);
                        objSKH.DenSo = Conversions.ToDouble(this.VS_KiHieu[i, 5]);
                        if (!objSKH.Save())
                        {
                            return;
                        }
                    }
                }
                objSKH = null;
                this.EnableControl = false;
                this.LoadData();
                this.VSList.Select(row, 0);
            }
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            this.ShowData(this.cFrmKhoa);
            this.EnableControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        public void EmptyData()
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.cFrmTask = "I";
            this.CboLoaiHoaDon2.SelectedIndex = 0;
            this.txtMauHoaDon.Text = "";
            this.txtDienGiai.Text = "";
            this.VS_KiHieu.Select(0, 0);
            this.VS_KiHieu.Rows.Count = 1;
            this.txtMauHoaDon.Focus();
            this.EnableControl = true;
        }

        private void Frm_DSMauHoaDon_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.EnableControl = false;
                BuildComboModule.BuildCombo(this.CboLoaiHoaDon, modGeneral.ListDanhMuc.LoaiHoaDonIn, false, "", "");
                BuildComboModule.BuildCombo(this.CboLoaiHoaDon2, modGeneral.ListDanhMuc.LoaiHoaDonIn, false, "", "");
                this.CboLoaiHoaDon.Enabled = false;
                this.LoadData();
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_DSMauHoaDon));
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdSave = new ToolStripButton();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.CmdUnsave = new ToolStripButton();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdFind = new ToolStripButton();
            this.ToolStripSeparator4 = new ToolStripSeparator();
            this.CmdPrint = new ToolStripButton();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.CmdHelp = new ToolStripButton();
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.Panel2 = new Panel();
            this.VSList = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel1 = new Panel();
            this.CboLoaiHoaDon = new ComboBox();
            this.C1DockingTab2 = new C1DockingTab();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.CboLoaiHoaDon2 = new ComboBox();
            this.GroupBox1 = new GroupBox();
            this.CmdDelRow = new Button();
            this.CmdAddRow = new Button();
            this.VS_KiHieu = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.txtDienGiai = new TextBox();
            this.Label3 = new Label();
            this.txtMauHoaDon = new TextBox();
            this.Label2 = new Label();
            this.Label1 = new Label();
            this.ToolStrip1.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            this.VSList.BeginInit();
            this.Panel1.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab2).BeginInit();
            this.C1DockingTab2.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            this.GroupBox1.SuspendLayout();
            this.VS_KiHieu.BeginInit();
            this.SuspendLayout();
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.ToolStripButton1, this.CmdUnsave, this.ToolStripSeparator1, this.CmdFind, this.ToolStripSeparator4, this.CmdPrint, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdHelp });
            Point point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            Size size = new Size(0x28c, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0x17;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Enabled = false;
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "Th\x00eam mới";
            this.CmdAdd.Visible = false;
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x6d, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Quản l\x00fd k\x00fd hiệu";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2f, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x39, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.ToolStripSeparator1.Visible = false;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdFind.Visible = false;
            this.ToolStripSeparator4.Name = "ToolStripSeparator4";
            size = new Size(6, 0x19);
            this.ToolStripSeparator4.Size = size;
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x6f, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In mẫu h\x00f3a đơn";
            this.CmdDel.Enabled = false;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.CmdDel.Visible = false;
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.ToolStripSeparator3.Visible = false;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageTransparentColor = Color.White;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x48, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "Trợ gi\x00fap";
            this.CmdHelp.Visible = false;
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Dock = DockStyle.Left;
            point = new Point(0, 0x19);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            size = new Size(210, 0x175);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 0x19;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.Panel2);
            this.C1DockingTabPage1.Controls.Add(this.VSList);
            this.C1DockingTabPage1.Controls.Add(this.Panel1);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0xd0, 0x15b);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Danh s\x00e1ch";
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x138);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0xd0, 0x23);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 2;
            this.VSList.AllowEditing = false;
            this.VSList.AutoResize = false;
            this.VSList.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSList.ColumnInfo = "2,0,0,0,0,85,Columns:0{Caption:\"Kh\x00f3a\";Visible:False;}\t1{Caption:\"Mẫu h\x00f3a đơn\";}\t";
            this.VSList.Dock = DockStyle.Fill;
            this.VSList.ExtendLastCol = true;
            this.VSList.FocusRect = FocusRectEnum.None;
            point = new Point(0, 0x1d);
            this.VSList.Location = point;
            this.VSList.Name = "VSList";
            this.VSList.Rows.Count = 1;
            this.VSList.Rows.DefaultSize = 0x11;
            this.VSList.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0xd0, 0x13e);
            this.VSList.Size = size;
            this.VSList.StyleInfo = manager.GetString("VSList.StyleInfo");
            this.VSList.TabIndex = 0;
            this.VSList.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.System;
            this.Panel1.BackColor = Color.Transparent;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.Panel1.Controls.Add(this.CboLoaiHoaDon);
            this.Panel1.Dock = DockStyle.Top;
            point = new Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0xd0, 0x1d);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 1;
            this.CboLoaiHoaDon.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiHoaDon.Enabled = false;
            this.CboLoaiHoaDon.FormattingEnabled = true;
            point = new Point(3, 4);
            this.CboLoaiHoaDon.Location = point;
            this.CboLoaiHoaDon.Name = "CboLoaiHoaDon";
            size = new Size(200, 0x15);
            this.CboLoaiHoaDon.Size = size;
            this.CboLoaiHoaDon.TabIndex = 0;
            this.C1DockingTab2.Controls.Add(this.C1DockingTabPage2);
            this.C1DockingTab2.Dock = DockStyle.Fill;
            point = new Point(210, 0x19);
            this.C1DockingTab2.Location = point;
            this.C1DockingTab2.Name = "C1DockingTab2";
            size = new Size(0x1ba, 0x175);
            this.C1DockingTab2.Size = size;
            this.C1DockingTab2.TabIndex = 0x1a;
            this.C1DockingTab2.TabsSpacing = 5;
            this.C1DockingTab2.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab2.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab2.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage2.Controls.Add(this.CboLoaiHoaDon2);
            this.C1DockingTabPage2.Controls.Add(this.GroupBox1);
            this.C1DockingTabPage2.Controls.Add(this.txtDienGiai);
            this.C1DockingTabPage2.Controls.Add(this.Label3);
            this.C1DockingTabPage2.Controls.Add(this.txtMauHoaDon);
            this.C1DockingTabPage2.Controls.Add(this.Label2);
            this.C1DockingTabPage2.Controls.Add(this.Label1);
            this.C1DockingTabPage2.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(440, 0x15b);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 0;
            this.C1DockingTabPage2.Text = "Th\x00f4ng tin chi tiết";
            this.CboLoaiHoaDon2.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiHoaDon2.Enabled = false;
            this.CboLoaiHoaDon2.FormattingEnabled = true;
            point = new Point(0x68, 0x13);
            this.CboLoaiHoaDon2.Location = point;
            this.CboLoaiHoaDon2.Name = "CboLoaiHoaDon2";
            size = new Size(0x72, 0x15);
            this.CboLoaiHoaDon2.Size = size;
            this.CboLoaiHoaDon2.TabIndex = 8;
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CmdDelRow);
            this.GroupBox1.Controls.Add(this.CmdAddRow);
            this.GroupBox1.Controls.Add(this.VS_KiHieu);
            point = new Point(14, 130);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x19b, 0xbc);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 7;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Danh s\x00e1ch k\x00fd hiệu";
            this.CmdDelRow.Image = ACCOUNTING.My.Resources.Resources.Remove;
            this.CmdDelRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x62, 0xa1);
            this.CmdDelRow.Location = point;
            this.CmdDelRow.Name = "CmdDelRow";
            size = new Size(0x59, 0x17);
            this.CmdDelRow.Size = size;
            this.CmdDelRow.TabIndex = 8;
            this.CmdDelRow.Text = "X\x00f3a d\x00f2ng";
            this.CmdDelRow.UseVisualStyleBackColor = true;
            this.CmdAddRow.Image = ACCOUNTING.My.Resources.Resources.Adds;
            this.CmdAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(3, 0xa1);
            this.CmdAddRow.Location = point;
            this.CmdAddRow.Name = "CmdAddRow";
            size = new Size(0x59, 0x17);
            this.CmdAddRow.Size = size;
            this.CmdAddRow.TabIndex = 7;
            this.CmdAddRow.Text = "Th\x00eam d\x00f2ng";
            this.CmdAddRow.UseVisualStyleBackColor = true;
            this.VS_KiHieu.AutoResize = false;
            this.VS_KiHieu.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VS_KiHieu.ColumnInfo = manager.GetString("VS_KiHieu.ColumnInfo");
            this.VS_KiHieu.Dock = DockStyle.Top;
            this.VS_KiHieu.ExtendLastCol = true;
            this.VS_KiHieu.FocusRect = FocusRectEnum.None;
            point = new Point(3, 0x10);
            this.VS_KiHieu.Location = point;
            this.VS_KiHieu.Name = "VS_KiHieu";
            this.VS_KiHieu.Rows.Count = 1;
            this.VS_KiHieu.Rows.DefaultSize = 0x11;
            this.VS_KiHieu.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x195, 0x8b);
            this.VS_KiHieu.Size = size;
            this.VS_KiHieu.StyleInfo = manager.GetString("VS_KiHieu.StyleInfo");
            this.VS_KiHieu.TabIndex = 6;
            this.VS_KiHieu.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.System;
            this.txtDienGiai.Enabled = false;
            point = new Point(0x68, 0x47);
            this.txtDienGiai.Location = point;
            this.txtDienGiai.Name = "txtDienGiai";
            size = new Size(0x13e, 20);
            this.txtDienGiai.Size = size;
            this.txtDienGiai.TabIndex = 5;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new Point(0x12, 0x4a);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x30, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 4;
            this.Label3.Text = "Diễn giải";
            this.txtMauHoaDon.Enabled = false;
            point = new Point(0x68, 0x2d);
            this.txtMauHoaDon.Location = point;
            this.txtMauHoaDon.Name = "txtMauHoaDon";
            size = new Size(0x72, 20);
            this.txtMauHoaDon.Size = size;
            this.txtMauHoaDon.TabIndex = 3;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(0x12, 0x30);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x47, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 2;
            this.Label2.Text = "Mẫu h\x00f3a đơn";
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(0x12, 0x16);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(70, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0;
            this.Label1.Text = "Loại h\x00f3a đơn";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x28c, 0x18e);
            this.ClientSize = size;
            this.Controls.Add(this.C1DockingTab2);
            this.Controls.Add(this.C1DockingTab1);
            this.Controls.Add(this.ToolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_DSMauHoaDon";
            this.Tag = "HT-0006";
            this.Text = "QUAN LY MAU HOA DON";
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.VSList.EndInit();
            this.Panel1.ResumeLayout(false);
            ((ISupportInitialize) this.C1DockingTab2).EndInit();
            this.C1DockingTab2.ResumeLayout(false);
            this.C1DockingTabPage2.ResumeLayout(false);
            this.C1DockingTabPage2.PerformLayout();
            this.GroupBox1.ResumeLayout(false);
            this.VS_KiHieu.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadData()
        {
            if (this.CboLoaiHoaDon.SelectedValue.ToString().Trim() != "")
            {
                this.cFrmData = new DataView(this.objMHD.ShowList("KhoaLoaiHoaDonIn = '" + this.CboLoaiHoaDon.SelectedValue.ToString().Trim() + "'"));
            }
            else
            {
                this.cFrmData = new DataView(this.objMHD.ShowList(""));
            }
            this.VSList.DataSource = this.cFrmData;
            C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
            vSList[0, 0] = modGeneral.Tranlated("Mẫu h\x00f3a đơn", "");
            vSList.Cols[1].Visible = false;
            vSList.Cols[2].Visible = false;
            vSList = null;
        }

        public void ShowData(string pKhoa)
        {
            clsMauHoaDon objMHD = this.objMHD;
            objMHD.Load(pKhoa);
            this.cFrmKhoa = objMHD.MauHoaDon.Trim();
            this.CboLoaiHoaDon2.SelectedValue = objMHD.KhoaLoaiHoaDonIn.Trim();
            this.txtMauHoaDon.Text = objMHD.MauHoaDon.Trim();
            this.txtDienGiai.Text = objMHD.DienGiai.Trim();
            objMHD = null;
            DataTable table = this.objSKH.ShowList("MauHoaDon = '" + this.cFrmKhoa + "'");
            this.VS_KiHieu.Select(0, 0);
            this.VS_KiHieu.Rows.Count = 1;
            int num2 = table.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                C1.Win.C1FlexGrid.C1FlexGrid grid = this.VS_KiHieu;
                grid.AddItem("");
                grid[grid.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(table.Rows[i]["MauHoaDon"]);
                grid[grid.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoKiHieu"]);
                grid[grid.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(table.Rows[i]["GiaTri"]), 0, modGeneral.TypeOfValue.Nothing));
                grid[grid.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoKiHieu"]);
                grid[grid.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(table.Rows[i]["TuSo"]), 0, modGeneral.TypeOfValue.Nothing));
                grid[grid.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(table.Rows[i]["DenSo"]), 0, modGeneral.TypeOfValue.Nothing));
                if (this.objSKH.WasUsed(this.cFrmKhoa, Conversions.ToString(grid[grid.Rows.Count - 1, 1])))
                {
                    grid.Rows[grid.Rows.Count - 1].AllowEditing = false;
                    LVYModule.SetColorForGrid(this.VS_KiHieu, Color.GreenYellow, grid.Rows.Count - 1, 0, 0, 0);
                }
                grid = null;
            }
        }

        private void VS_KiHieu_AfterEdit(object sender, RowColEventArgs e)
        {
            string str = "";
            this.VS_KiHieu[e.Row, 1] = this.VS_KiHieu[e.Row, 1].ToString().Trim();
            str = this.VS_KiHieu[e.Row, 1].ToString();
            int num = 0;
            int num3 = this.VS_KiHieu.Rows.Count - 1;
            for (int i = 1; i <= num3; i++)
            {
                if (this.VS_KiHieu[i, 1].ToString().Trim() == str)
                {
                    num++;
                }
            }
            if (num > 1)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("K\x00fd hiệu của mẫu h\x00f3a đơn n\x00e0y đ\x00e3 tồn tại, vui l\x00f2ng nhập lại!", ""));
                this.VS_KiHieu[e.Row, 1] = RuntimeHelpers.GetObjectValue(LVYModule.ReturnIfNull(this.VS_KiHieu[e.Row, 3].ToString().Trim(), "", modGeneral.TypeOfValue.Nothing));
                this.VS_KiHieu.Focus();
            }
            else
            {
                this.VS_KiHieu[e.Row, 3] = RuntimeHelpers.GetObjectValue(LVYModule.ReturnIfNull(this.VS_KiHieu[e.Row, 1].ToString().Trim(), "", modGeneral.TypeOfValue.Nothing));
                this.VS_KiHieu[e.Row, 2] = 0;
                this.VS_KiHieu[e.Row, 4] = 0;
                this.VS_KiHieu[e.Row, 5] = 0;
            }
        }

        private void VSList_RowColChange(object sender, EventArgs e)
        {
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                this.ShowData(Conversions.ToString(this.VSList[this.VSList.Row, 0]));
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual ComboBox CboLoaiHoaDon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiHoaDon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboLoaiHoaDon_SelectedIndexChanged);
                if (this._CboLoaiHoaDon != null)
                {
                    this._CboLoaiHoaDon.SelectedIndexChanged -= handler;
                }
                this._CboLoaiHoaDon = value;
                if (this._CboLoaiHoaDon != null)
                {
                    this._CboLoaiHoaDon.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboLoaiHoaDon2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiHoaDon2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiHoaDon2 = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddRow_Click);
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click -= handler;
                }
                this._CmdAddRow = value;
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDelRow_Click);
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click -= handler;
                }
                this._CmdDelRow = value;
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdFind = value;
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdHelp = value;
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_Click);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        public bool EnableControl
        {
            get
            {
                return this.mEnableControl;
            }
            set
            {
                this.mEnableControl = value;
                this.CmdAdd.Enabled = !value & this.mAllowAdd;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdDel.Enabled = !value & this.mAllowDel;
                this.VSList.Enabled = !value;
                this.VS_KiHieu.Cols[1].AllowEditing = value;
                this.CmdAddRow.Enabled = value;
                this.CmdDelRow.Enabled = value;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.CmdExit.Enabled = !value;
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator4 = value;
            }
        }

        internal virtual TextBox txtDienGiai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtDienGiai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtDienGiai = value;
            }
        }

        internal virtual TextBox txtMauHoaDon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtMauHoaDon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtMauHoaDon = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VS_KiHieu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VS_KiHieu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VS_KiHieu_AfterEdit);
                if (this._VS_KiHieu != null)
                {
                    this._VS_KiHieu.AfterEdit -= handler;
                }
                this._VS_KiHieu = value;
                if (this._VS_KiHieu != null)
                {
                    this._VS_KiHieu.AfterEdit += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSList
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSList;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSList_RowColChange);
                if (this._VSList != null)
                {
                    this._VSList.RowColChange -= handler;
                }
                this._VSList = value;
                if (this._VSList != null)
                {
                    this._VSList.RowColChange += handler;
                }
            }
        }
    }
}

